import index from 'component/index/index'



const routers = [
    {path: '/', redirect:'/index'},
    {path: '/index', component:index},
    // {path: '/rent', url: 'rent/rent'},
    // {path: '/shop', url: 'shop/shop'},
    // {path: '/info', url: 'info/info'},
    // {path: '/login', url: 'login/login'},
    // {path: '/detail', url: 'common/productDetail'},
    // {path: '/rentDetail', url: 'rent/rentDetail'},
    // {path: '/shopDetail', url: 'shop/productDetail'},
    // {path: '/publish', url: 'shop/publish'},
]


        // component: r => require.ensure([], () => r(require(['component/'+pathObj.url])), pathObj.path.substring(1))
        //               r => require.ensure([], () => r(require('../page/vipcard/children/invoiceRecord')), 'invoiceRecord')
        component: r => require(['component/'+pathObj.url], r)



module.exports = routers